﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model.EF;
using Model;
using System.Collections;

public partial class _Default : System.Web.UI.Page
{
    //注册
    protected void Page_Load(object sender, EventArgs e)
    {
        IRepository<Dinner> DinnerRepository = new EntityRepository<Dinner>();
        
        IList<Dinner> list = DinnerRepository.FindAll().ToList();
        test.DataSource = list;
        test.DataBind();
    }
}